class CreateDocuments < ActiveRecord::Migration		
  def self.up		
    create_table :documents do |t|		
	t.column	:id,	:INT
	t.column	:party_id,	:INT
	t.column	:plan_id,	:INT
	t.column	:member_id,	:INT
	t.column	:title,	:string
	t.column	:content,	:TEXT
	t.column	:create_date,	:datetime
	t.column	:have_img,	:boolean
	t.column	:is_deleted,	:boolean
	t.column	:type,	:INT
	t.column	:parent_id,	:INT
	t.column	:depth,	:INT
	t.timestamps		
    end		
  end		
		
  def self.down		
    drop_table :documents		
  end		
end		
